home *** CD-ROM | disk | FTP | other *** search
- Path: newsie.dmc.com!usenet
- From: prozac@cape.com (gregg jennings)
- Newsgroups: comp.lang.c
- Subject: Re: 16bit vs. 32bit
- Date: 11 Apr 1996 22:30:43 GMT
- Organization: Colossal Congress of Stuff & Things
- Message-ID: <4kk16j$9jt@newsie.dmc.com>
- References: <315845E6.64FC@oc.com> <315BD1FA.2B34@cmt.lpr.mail.carel.fi> <315C1210.5621@oc.com> <DpAvC8.HD4@eskimo.com>
- NNTP-Posting-Host: tsa_34.cape.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.6
-
- In article <DpAvC8.HD4@eskimo.com> scs@eskimo.com (Steve Summit) writes:
-
- >>>> One of the whole points of using a high-level language is to
- >>>> insulate you from low-level machine implementation details such
- >>>> as the sizes of things in bits. If you find yourself needing to
- >>>> know the sizes of things in bits, someone screwed up.
- >>>
- >>> Yeah. Maybe it was the guy who wrote the program in a 32-bit Unix
- >>> machine seven years back that stores data in binary format to a file
- >>> you now have to read in a 16-bit DOS machine?
-
- >Indeed.
-
- >> And, how did that programmer "screw up" ?
-
- >By choosing a binary data file format, and condemning later
- >programmers to use machine-dependent code if they wished to read
- >it efficiently.
-
- You are right but...
-
- In data compression, for example, one just has to know the size of
- things in bits!
-
- Yes using a non-arbitrary data file format make sense, especially
- for common applications such as word processors (microsoft take
- note please!), but there may always be some situations where
- portability of data formats is just not required.
-
- Choosing a data format as you indicate implies pre-cognition:
-
- 1. You knew that a higher-bit system was going to appear in
- the future (we all think that now, but many years ago?).
-
- 2. You knew that the data was not going to be limited to one
- machine/implementation ("you mean other people want to
- use my XXX-DBS-2000 software?").
-
- Also, like moving up in bit size, whose to say that ASCII will be
- portable forever? (Although in all probability it just might.)
-
- How about writing something that is called a data conversion program?
-
- And just how is Unix data converted to DOS? 9" tape? Floppies?
- Serial/network connection? All require a data conversion program
- of some type (either an application/tool or some transfer protocol).
-
-
-